package code.google.model.player.states;

import code.google.model.util.interfaces.ISong;


public class IdleStreamState extends StreamState {

	public IdleStreamState(StateManager manager) {
		super(manager);
		
	}

	@Override
	public boolean play(ISong song) {
		player.setOnPreparedListener(manager.getPreparingStreamState());
		player.setOnCompletionListener(manager.getPlayingStreamState());
		streamingStartTask = new StreamingStartTask();
		streamingStartTask.execute(song);
		return true;
	}

}
